package borrowBook;

public class Student {
    private String name;
    private LibraryCard libraryCard;

    public Student(String name)
    {
        this.name = name;
        this.libraryCard = new LibraryCard(name);
    }

    public String getName()
    {
        return name;
    }

    public LibraryCard getLibraryCard()
    {
        return libraryCard;
    }

    public void borrowBook(Book book)
    {
        libraryCard.borrowBook(book);
    }
}
